const logger = require("./pino/index");

const sleep = (time) => {
    const timeStamp = new Date().getTime();
    const endTime = timeStamp + time;
    while (true) {
        if (new Date().getTime() > endTime) {
            return;
        }
    }
};

// 性能 10000 * 100, 1 ~ 2秒 内执行完毕
for (let i = 0; i < 10000 * 1; i++) {
    logger.info("hello world");
    sleep(2000);
}
